package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-06-01
 * Time: 15:48
 */
public class Test {
    public static void main(String[] args) {

    }
    public static void main1(String[] args) {
        String str1 = "hello";
        String str2 = new String("hello");
        char[] ch = new char[]{'h', 'e','l','l','o'};
        String str3 = new String(ch);
        System.out.println(str1);
        System.out.println(str2);
        System.out.println(str3);
        System.out.println(str1.length());
        System.out.println(str1.isEmpty());
        String str4 = "";
        System.out.println(str4.isEmpty());
    }
}
